package net.chromedpork.scraper.configuration;



import net.chromedpork.hypertext.validation.Assertion;



/**
 *
 *  Scraper configuration parser object factory.
 * 
 *  @author Inode <inode@chromedpork.net>
 *
 */

public class ConfigurationParserFactory
{
    /**
     *
     *  Fabricates a scraper configuration parser.
     *
     *  @param arguments    document-specific arguments
     *
     *  @return configuration parser
     *
     */

    public static ConfigurationParser getParser(String... arguments)
    {
        Assertion.notNull(arguments, "arguments array is null");
        Assertion.notNegativeNorZero(arguments.length, "bad argument count");
        
        return (new ConfigurationParser(arguments));
    }
}
